package com.jingjiu.homeservicesapi.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户亲属信息：用于记录一个用户的多个亲属信息（如父母、子女等）对象 user_relative
 * 
 * @author ruoyi
 * @date 2025-04-16
 */
public class UserRelative extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 亲属记录ID */
    private Long id;

    /** 关联的用户ID */
    @Excel(name = "关联的用户ID")
    private Long userId;

    /** 亲属姓名 */
    @Excel(name = "亲属姓名")
    private String name;

    /** 与用户关系 */
    @Excel(name = "与用户关系")
    private String relation;

    /** 亲属联系电话 */
    @Excel(name = "亲属联系电话")
    private String phone;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setRelation(String relation) 
    {
        this.relation = relation;
    }

    public String getRelation() 
    {
        return relation;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("name", getName())
            .append("relation", getRelation())
            .append("phone", getPhone())
            .toString();
    }
}
